package com.trkj.focusonzhuzhou.news;

import com.trkj.focusonzhuzhou.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

public class NewsFragment extends Fragment {

	private LinearLayout root;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if(root == null){
			root  = (LinearLayout) inflater.
					inflate(R.layout.news, null);
		}
		
		ViewGroup parent  = (ViewGroup) root.getParent();
		if(parent != null){
			parent.removeAllViews();
		}
		
		return root;
	}
}
